package io.github.cunyu1943;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 *
 * @Package : io.github.cunyu1943
 * @ClassName : SplitTest.java
 * @CreateTime : 2022/11/29 22:37
 * @Version : 1.0
 * @Author : 村雨遥
 * @Email : 747731461@qq.com
 * @公众号 : 村雨遥
 * @Website : https://cunyu1943.github.io/JavaPark
 * @Description : 字符串切分
 */
public class SplitTest {
    public static void main(String[] args) {
        String str = "010-110-119";

        String[] splitArray = str.split("-");

        System.out.println(Arrays.toString(splitArray));
    }
}
